﻿using System;
using System.Collections.Generic;

namespace TasksDataXml.Exceptions
{
    public class CommonException : ApplicationException
    {
        public IEnumerable<Exception> InnerExceptions { get; set; }

        public CommonException(string message, Exception innerException = null)
            : base(message, innerException)
        {

        }

        public CommonException(IEnumerable<Exception> innerExceptions)
            : base("Multiple exceptions occured")
        {
            InnerExceptions = innerExceptions;
        }
    }
}
